import request from '@/utils/request'
export function queryOne(id){

}
// 查询授权列表
export function queryGrant(articleId){
    return request({
        url: 'grad/cms/grant/'+articleId,
        method: 'get'
    })
}
// 新增授权
export function privilegeGrant(data){
    return request({
        url: 'grad/cms/privilege/grant',
        method: 'post',
        data:data
    })
}
// 取消授权
export function privilegeCancel(data){
    return request({
        url: 'grad/cms/privilege/cancel',
        method: 'post',
        data:data
    })
}

// 列表查询
export function queryList(query){
    return request({
        url: '/grad/cms/grant',
        method: 'get',
        params: query
    })
}
// 查询全部授权内容
export function grantedCms(){
    return request({
        url: '/grad/cms/granted',
        method: 'get'
    })
}